package com.eu.ebpm.engine.pvm;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.eu.ebpm.engine.cmd.pvm.ServiceTaskIntoCommand;
import com.eu.ebpm.engine.entity.deploy.Mission;
import com.eu.ebpm.engine.entity.runtime.TaskEntity;

/**
 * 
 * 类名称: ServiceTaskService
 * 类描述: 自动任务执行服务
 * @author 王晓华
 * @since 2015-1-20 上午11:31:56
 * @version v1.0
 */
@Component
public class ServiceTaskService extends PvmEngine implements EngineService {

	@Autowired
	private ServiceTaskIntoCommand serviceTaskIntoCommand;
	
	public void into(Mission mission, TaskEntity task, Map<String, Object> vs) {
		
		Map<String, Object> toVs = serviceTaskIntoCommand.execute(mission, task, vs);
		
		doDispatch(task, mission.getTransfers(), toVs);
		
	}
	
	
	
	
	
	
	
	
	
	
	
	

}
